﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DoiPhong.ascx.cs" Inherits="QuanLyKTX_Phong_DoiPhong" %>
<div class="subnav admin-views-subnav">
    <div class="container-fluid">
        <ul class="nav nav-pills">
            <li><a href="Default.aspx">Phòng</a></li>
            <li class="active"><a href="#">Đổi phòng</a></li>

        </ul>
    </div>
</div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>



        <div class="container-fluid" id="dvGrid">
            <div class="form-horizontal form-bordered form-validate" id="create">
                <div class="page-header clearfix">
                    <h2 class="page-title pull-left">Đổi phòng #<%=Model.SinhVien.HoTenDayDu %>
                        <span id="spinner" class="loaded"><i class="fa fa-spinner fa-spin fa-sm"></i></span>
                    </h2>
                    <asp:ColorLifeButtonEx ID="btnSave" runat="server" CssClass="btn btn-success pull-right btn-header" IconClass="fa fa-save" IsShowButton="false" ToolTip="Lưu" Text="Lưu" OnClick="btnSave_Click" />
                </div>

            </div>

            <div class="editor admin-editor">

                <div id="overlay-editor">



                    <div class="row clearfix">

                        <div class="col-md-6">
                            <div class="panel panel-primary">
                                <div class="panel-heading">THÔNG TIN CƠ BẢN</div>
                                <div class="panel-body">
                                    <div class="media">
                                        <a class="pull-left" href="#">
                                            <img class="media-object" src="<%=Model.SinhVien.AnhDaiDien %>" alt="..." style="width: 150px; height: 200px">
                                        </a>
                                        <div class="media-body">
                                            <h4 class="media-heading">Họ và tên: <%=Model.SinhVien.HoTenDayDu %></h4>
                                            Giới tính: <%=Model.SinhVien.GetGioiTinh %><br />
                                            Ngày sinh: <%=Model.SinhVien.NgaySinh.ToString("dd/MM/yyyy") %><br />
                                            Nơi sinh: <%=Model.SinhVien.HoKhauThuongTru %>
                                            <br />
                                            Số CMDN: <%=Model.SinhVien.SoCMND %>
                                            <br />
                                            Dân tộc: <%=Model.SinhVien.DanToc %>
                                            <br />
                                            Điện thoại: <%=Model.SinhVien.SoDienThoai %>
                                            <p>
                                                <b>Thông tin phòng đang ở</b><br />

                                                Phòng: <%=Model.Phong.TenPhong %> Nhà: <%=Model.Phong.KhuNha.TenKhuNha %>
                                            </p>
                                        </div>
                                    </div>

                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="panel panel-primary">
                                <div class="panel-heading">CHỌN PHÒNG MỚI</div>
                                <div class="panel-body">
                                    <div id="StatusBox" runat="server">
                                    </div>

                                    <div class="form-horizontal clearfix">


                                        <div class="form-group">
                                            <label class="col-sm-2 control-label" for="IDKhuNha">Nhà</label>
                                            <div class="col-sm-10">
                                                <asp:DropDownList runat="server" ID="IDKhuNha" CssClass="form-control" placeholder="Nhà" data_rule_number="true" AppendDataBoundItems="true" AutoPostBack="true" OnSelectedIndexChanged="IDKhuNha_SelectedIndexChanged">
                                                    <asp:ListItem Value="-1">-- Chọn Nhà --</asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label" for="IDPhong">Phòng</label>
                                            <div class="col-sm-10">
                                                <asp:DropDownList runat="server" ID="IDPhong" CssClass="form-control" placeholder="Phòng" data_rule_number="true" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <hr>
                    <div class="btn-wrapper clearfix">
                        <div class="pull-left">
                            <button disabled="disabled" class="btn btn-default" style="border: none;">
                                <i class="fa fa-info-circle"></i>

                                <span class="ng-scope "></span>
                            </button>
                        </div>
                        <div class="pull-right">
                            <span id="spinner" class="loaded"><i class="fa fa-spinner fa-spin fa-lg"></i></span>
                            <a href="javascript:window.history.back();" class="btn btn-default "><i class="fa fa-ban"></i>Hủy</a>

                            <asp:ColorLifeButtonEx ID="btnSave2" runat="server" CssClass="btn btn-success" IconClass="fa fa-save" IsShowButton="false" ToolTip="Lưu" Text="Lưu" OnClick="btnSave_Click" />

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="IDKhuNha" EventName="SelectedIndexChanged" />
    </Triggers>
</asp:UpdatePanel>
